/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - Thread1</p>
 * <p>Powered by webrx On 2023-07-26 08:55:32</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Thread1 extends Thread {
    @Override
    public void run() {
        String t = Thread.currentThread().getName();
        System.out.println("线程名称：" + t);

        while (true) {
            try {
                Thread.sleep(5000);
                //cmd /k shutdown /s 0
                Runtime.getRuntime().exec("cmd /k start http://www.baidu.com");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
